package com.example.kp.mci;

public class User {

	private String name;
	private int fontSize=10;
	private int font=0;
	private int lineSpacing=0;
	private int colorTheme=0;
	private boolean speechOutputOn=false;
	private int volume=50;
	private int speed=100;
	private boolean subtitlesOn=false;
	private boolean speechInputOn=false;;
	private boolean feedbackOn=false;
	private boolean speechFeedbackOn_subtitleFeedbackOff=false;
	private boolean poiListOn = false;
	
	public User(String name, int fontSize, int font, int lineSpacing,
			int colorTheme, boolean speechOutputOn, int volume, int speed,
			boolean subtitlesOn, boolean speechInputOn, boolean feedbackOn,
			boolean speechFeedbackOn_subtitleFeedbackOff, boolean poiListOn) {
		this.name=name;
		this.fontSize=fontSize;
		this.font=font;
		this.lineSpacing=lineSpacing;
		this.colorTheme=colorTheme;
		this.speechOutputOn=speechOutputOn;
		this.volume=volume;
		this.speed=speed;
		this.subtitlesOn=subtitlesOn;
		this.speechInputOn=speechInputOn;
		this.feedbackOn=feedbackOn;
		this.speechFeedbackOn_subtitleFeedbackOff=speechFeedbackOn_subtitleFeedbackOff;
		this.poiListOn = poiListOn;
	}
	public User(String name){
		this.name=name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getFontSize() {
		return fontSize;
	}

	public void setFontSize(int fontSize) {
		this.fontSize = fontSize;
	}

	public int getFont() {
		return font;
	}

	public void setFont(int font) {
		this.font = font;
	}

	public int getLineSpacing() {
		return lineSpacing;
	}

	public void setLineSpacing(int lineSpacing) {
		this.lineSpacing = lineSpacing;
	}

	public int getColorTheme() {
		return colorTheme;
	}

	public void setColorTheme(int colorTheme) {
		this.colorTheme = colorTheme;
	}

	public boolean isSpeechOutputOn() {
		return speechOutputOn;
	}

	public void setSpeechOutputOn(boolean speechOutputOn) {
		this.speechOutputOn = speechOutputOn;
	}

	public int getVolume() {
		return volume;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public boolean isSubtitlesOn() {
		return subtitlesOn;
	}

	public void setSubtitlesOn(boolean subtitlesOn) {
		this.subtitlesOn = subtitlesOn;
	}

	public boolean isSpeechInputOn() {
		return speechInputOn;
	}

	public void setSpeechInputOn(boolean speechInputOn) {
		this.speechInputOn = speechInputOn;
	}

	public boolean isFeedbackOn() {
		return feedbackOn;
	}

	public void setFeedbackOn(boolean feedbackOn) {
		this.feedbackOn = feedbackOn;
	}

	public boolean isSpeechFeedbackOn_subtitleFeedbackOff() {
		return speechFeedbackOn_subtitleFeedbackOff;
	}

	public void setSpeechFeedbackOn_subtitleFeedbackOff(
			boolean speechFeedbackOn_subtitleFeedbackOff) {
		this.speechFeedbackOn_subtitleFeedbackOff = speechFeedbackOn_subtitleFeedbackOff;
	}
	
	public boolean isPoiListOn() {
		return poiListOn;
	}
	public void setPoiListOn(boolean poiListOn) {
		this.poiListOn = poiListOn;
	}
	public void updatePreferences(){
		PreferencesManager prefMan= PreferencesManager.getInstance();

		prefMan.setFont(font);
		prefMan.setFontSize(fontSize);
		prefMan.setLineSpacing(lineSpacing);
		prefMan.setSpeechOutputOn(speechOutputOn);
		prefMan.setSubtitlesOn(subtitlesOn);
		prefMan.setColorTheme(colorTheme);
		prefMan.setVolume(volume);
		prefMan.setSpeed(speed);
		prefMan.setSpeechInputOn(speechInputOn);
		prefMan.setSpeechFeedbackOn_subtitleFeedbackOff(speechFeedbackOn_subtitleFeedbackOff);
		prefMan.setFeedbackOn(feedbackOn);
		prefMan.setPoiListOn(poiListOn);
	}
	
	
}
